Hi, i have a problem in the set a script environment. I released a script environment with many script in the addins folder. These scripts are crypted and all of them include libraries. This environment works fine for me, but one user get some error when he try to launch the file. For example he can't find some variable defined in some libraries or he get some error in the commented code. The two scripts environment (mine and the user) are exactly the same. The only defference is that he use DOORS 9.2 and i use DOORS 9.3, but there are other users with the 9.2 and the works fine with the environment. I am really getting mad about it. bungle_77 - Tue Feb 03 06:59:19 EST 2015 |
Re: include management Just a wild guess: does the "one user" have his own set of files (e.g. are the files stored locally on his PC)? Then perhaps they are not stored correctly, e.g. the file is not stored as UTF-8. Or he uses a completely different set of files: perhaps he set his "ADDINS/PROJECTADDINS" variables to a location where another version of the include files reside. Or there is an older copy of your include files in his directory c:\program files\ibm\...dxl\... |
Re: include management They are stored locally. Most of them work fine. If it's problem of environment variable all the script should not work. How can i check if they are stored as UTF-8? |
Re: include management bungle_77 - Tue Feb 03 08:21:51 EST 2015 They are stored locally. Most of them work fine. If it's problem of environment variable all the script should not work. How can i check if they are stored as UTF-8? why don't you host them on a server, less overhead. |
Re: include management EHcnck - Tue Feb 03 17:07:29 EST 2015 why don't you host them on a server, less overhead. it's not my choise |
Re: include management bungle_77 - Tue Feb 03 08:21:51 EST 2015 They are stored locally. Most of them work fine. If it's problem of environment variable all the script should not work. How can i check if they are stored as UTF-8? check for utf? Hm, several options. lmgtfy. - open the file with a hex viewer, check for characters > 7f, compare with the utf-8 code page. - open the file with an editor like notepad++, check what it says on the bottom line - open the file in the lister of total commander, check Options -> UTF-8, browse through the file whether there are strange characters.
Probably the easiest way is to use a compare tool like Beyond Compare (or again Total Commander) and make a binary comparison between the files on the user's PC and your personal versions of the files |
Re: include management Mike.Scharnow - Wed Feb 04 11:07:57 EST 2015 check for utf? Hm, several options. lmgtfy. - open the file with a hex viewer, check for characters > 7f, compare with the utf-8 code page. - open the file with an editor like notepad++, check what it says on the bottom line - open the file in the lister of total commander, check Options -> UTF-8, browse through the file whether there are strange characters.
Probably the easiest way is to use a compare tool like Beyond Compare (or again Total Commander) and make a binary comparison between the files on the user's PC and your personal versions of the files ok i will try, but they are exactly the same file. I sent him my files and he copied them |
Re: include management bungle_77 - Wed Feb 04 11:11:52 EST 2015 ok i will try, but they are exactly the same file. I sent him my files and he copied them well, it was just a guess anyway... the other possibility, that he has some older version of the script on his PC is more likely. Especially your information that he gets errors in commented code is really strange.... Did you compare his and your environment variables, all relevant registry settings, the structure and content of his files in C:\program files\..doors.. (compared with a working 9.2 environment)? You should try whether the unencrypted versions of the files change the behavior. Probably it's something simple.... |
Re: include management bungle_77 - Tue Feb 03 08:21:51 EST 2015 They are stored locally. Most of them work fine. If it's problem of environment variable all the script should not work. How can i check if they are stored as UTF-8? I think you might be on the wrong track here. Is it possible that you simply have an autodeclare problem, i.e. on your computer (which is default) autodeclare is turned on, which makes a couple of scripts run well, while on that other guys computer autodeclare is turned off (for whatever reason), maybe because he uses additional addins, etc. ? I suppose you know how to test this ... That would be my first action. Apart from that you should definitly take a look at the specific error messages. Even though the files are crypted, you will find out very quickly the reason you are experiencing these problems. He will complain about undeclared variables? Possibly autodeclare or some missing global variables. He is complaining about invalid parameters for functions? Probably a wrong version of an included file, that does not match the scripts. etc. Just my thoughts. Regards, Mathias |
Re: include management bungle_77 - Tue Feb 03 08:21:51 EST 2015 They are stored locally. Most of them work fine. If it's problem of environment variable all the script should not work. How can i check if they are stored as UTF-8? Hi > How can i check if they are stored as UTF-8? I do not check this (Exactly spoken: You cannot check it. You cannot make a difference between any Ansi-File or an utf-8 file unless you have some characters in the code page above $FF. And If you have such a character and the character is removed, you have a non determinable file again). Therefore I definitively save the file in utf-8 with bom. This makes shure that you have an utf-8 file in any cases. If I have file without the bom, I take notepad++ for this job. You can store a file or convert it. That is useful even for troubleshooting. Best regards Wolfgang |